package games.ninJumpDx.ui.factorys
{
	import games.ninJumpDx.ui.actions.Arrow;
	import games.ninJumpDx.ui.actions.Boulder;
	
	import interfaces.IAction;
	import utils.ActionFactory;

	public class WeaponFactory extends ActionFactory
	{
		public function WeaponFactory()
		{
			super();
		}
		
		override protected function createAction(name:String=null):IAction
		{
			switch(name)
			{
				case "arrow":
				case "arrow_reversion":
					return new Arrow(name);
				case "boulder":
				case "boulder_reversion":
					return new Boulder(name);
					
			}
			return null;
		}
	}
}